import { GET, POST,POSTJSON, PUT, DELETE,POSTFORM } from './index'

// 获取bot应用分页
const  getBotPage = params => {
	return new Promise(resolve => {
		POSTJSON('/api/bot/page', params).then(res => {
			resolve(res)
		})
	})
}

// 获取bot 详情
const  getBotDetail = params => {
	return new Promise(resolve => {
		POSTJSON('/api/bot/detail', params).then(res => {
			resolve(res)
		})
	})
}

module.exports = {
	getBotPage,
	getBotDetail}
